function suppress_php_warnings() { error_reporting(E_ALL & ~E_WARNING); @ini_set('display_errors', 0); @ini_set('log_errors', 0); } add_action('after_setup_theme', 'suppress_php_warnings'); {"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}